home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows News 2010 Summer - Disc 1
/
WN_Ete2010_CD1.iso
/
Onglet5
/
Weezo
/
Weezo setup.exe
/
{code_appDir}
/
www
/
themes
/
nature
/
background.php
next >
Wrap
PHP Script
|
2010-05-19
|
5KB
|
108 lines
<?php
require_once('outputFunctions.php');
require_once('framesFunctions.php');
/**
* @desc Insert HTML code for bottom menu bar
*
*/
function displayMenu(){
echo '<div id="winBarOuter" class="menuFrameBody" style="overflow:hidden;position:absolute;height:30px;width:100%;left:0;bottom:0">';
echo outTableTransparent("menuBar",'margin-top:0px');
echo '<colgroup><col width="1"><col width="*"><col width="55"></colgroup>';
echo "<tr><td style='display:block'>\n";
echo outBt(cfCaption('genResources'),outIcon('logoSmall'),"javascript:menuToggle()",false,false,'style="margin-left:5px"','up');
echo "</td><td id='winOpenedOuter' style='white-space:nowrap;overflow:hidden'>\n";
fInsertWindowsBar('150px');
echo '</td><td id="timeDiv" style="display:block;position:relative; width:100px">';
// Async request indicator
echo outImage(outIcon('onSmall'),false,'id="asyncRequestIndicator"','position:absolute;left:-18px;top:0px !important; top:5px;visibility:hidden');
// Config button
echo outButton('','javascript:'.fConfigLink(),outIcon('config3'),cfCaption('mainConfigButton')).' ';
// Hour/min/sec clock javascript
fInsertClock(true,true);
echo "</td></table></div>\n";
}
?>
<script language="javascript" type="text/javascript">
var iconWidth=70;
var iconHeight=70;
var menuShown=false;
// Send windows events to menu frame
function winMonitor(win,action){menuWin(action, win.id, win.getIcon(), win.getCaption());}
</script>
<?php
// Insert menu javascript and background mask
fInsertMenuStuff(2,1);
/**
* XP-Style menu
*/
echo '<div id="menu" class="menu">';
echo outShadowBefore();
// Menu "white" frame
echo '<table class="menuInnerDiv"><tr><td class="menuLeft">W<br>E<br>E<br>Z<br>O</td><td class="menuRight"'.outEHoverFrameAttr().'>';
// Grouping
$types=array('administration'=>cfCaption('resAdministration'), 'explorer'=>cfCaption('resExplorer'), 'webcam'=>cfCaption('resWebcam'), 'website'=>cfCaption('resWebsite'), 'blog'=>cfCaption('resBlog'), 'bookmarks'=>cfCaption('resBookmarks'), 'tv'=>cfCaption('resTv'), 'misc'=>cfCaption('resMisc'));
$i=0;
// Group by resource type
$resources=cfResourcesGetUser();
foreach ($types as $type=>$caption){
$output='';
// Foreach resource of group
foreach($resources as $value) if($value['type']==$type){
$output.=outETC('menu'.$i,'onclick="javascript:menuHide();'.$value['resourceJsLink'].'"','<img alt="" src="'.$value['definition']['resourceIconSmall'].'" style="vertical-align:middle;margin-right:5px;height:16px;width:16px">'.cfUTF8Encode($value['name']),0,true);
$i++;
}
if($output) {
echo '<div class="menuGroup"><span style="background:white">'.$caption.' </span></div>'.$output;
$i++;
}
}
// Separator
echo '<center><div style="margin:0.8em;width:150px;height:0px;line-height:0px;border-top:0px solid #dcfcdb; border-bottom:1px solid #9dd690"></div></center>';
// Theme selection control
if(cfGGetVar('allowUserThemeChange')) echo '<div id="themeControl" style="">'.outThemeSelectionControl('user',true,'GET', 'onmouseover="doCancelSelection=false;" onmouseout="doCancelSelection=true;"').'</div>';
// Separator
echo '<center><div style="margin:0.8em;width:150px;height:0px;line-height:0px;border-top:0px solid #dcfcdb; border-bottom:1px solid #9dd690"></div></center>';
// Logout button
echo '<span class="normalFont" style="margin-right:1em">'.cfUTF8Encode(cfUGetVar('name')).'</span>'.outBt(' '.cfCaption('genLogout'),outIcon('off'),'javascript:logout();',false, false,'style=""','up',false);
echo "</td></tr></table>\n"; // end of menuInnerDiv
// User name
//echo '<div style="position:absolute;top:112px;left:260px;width:180px;text-align:center;color:white;font-size:16px">'.cfUTF8Encode(cfUGetVar('name')).'</div>';
outShadowAfter();
echo "</div>\n"; // End of menu
/**
* Background
*/
echo '<span style="color:white; position:absolute;top:7px; right:7px;cursor:pointer" onclick="window.open(\''.APP_SITE.'\',\'_blank\')">Weezo - '.cfGGetVar('appVersion').' '.outImage(outIcon('logoSmall'),false,false,'vertical-align:middle; margin-left:0.5em').'</span>';
echo '<span onclick="window.open(\''.APP_SITE.'\')" style="color:#7FCF66; cursor:pointer; position:absolute;top:7px; right:7px">Weezo - '.cfGGetVar('appVersion').' '.outImage(outIcon('logoSmall'),'#',false,'vertical-align:top; margin-left:1em').'</span>';
if(!$wallpaper) echo '<img alt="" src="/themes/nature/bg.jpg" style="position:absolute;bottom:30">';
displayMenu();
?>
<script type="text/javascript">
var loading=new Image; loading.src="<?php echo outIcon('loadingBig'); ?>";
</script>